﻿@model IEnumerable<PIB.Models.Vak>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<p>
    Een nieuw vak 
    @Html.ActionLink("aanmaken.", "Create")
</p>
<table>
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.VakNaam)
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.VakNaam)
        </td>
        <td>
            @Html.ActionLink("Wijzigen", "Edit", new { id = item.VakId }) |
            @Html.ActionLink("Details", "Details", new { id=item.VakId }) |
            @Html.ActionLink("Verwijderen", "Delete", new { id=item.VakId })
        </td>
    </tr>
}

</table>
